package com.cs.common.utils;

import java.util.ArrayList;

public class ArrayListNoRepeat extends ArrayList {
	private static final long serialVersionUID = 8590925810391711870L;
	public ArrayListNoRepeat() {
		super();
	}
	public ArrayListNoRepeat(int initialCapacity){
		super(initialCapacity);
	}
	/*
	 * (non-Javadoc)
	 * @see java.util.ArrayList#add(java.lang.Object)
	 */
	public boolean add(Object o) {
		boolean retVal = false;
		if( !this.contains(o) ){
			retVal = super.add(o);
		}
		return retVal;
	}
}